<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<meta name="generator" content="pdoc3 0.11.5">
<title>tflite.Tensor API documentation</title>
<meta name="description" content="">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/13.0.0/sanitize.min.css" integrity="sha512-y1dtMcuvtTMJc1yPgEqF0ZjQbhnc/bFhyvIyVNb9Zk5mIGtqVaAB1Ttl28su8AvFMOY0EwRbAe+HCLqj6W7/KA==" crossorigin>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/13.0.0/typography.min.css" integrity="sha512-Y1DYSb995BAfxobCkKepB1BqJJTPrOp3zPL74AWFugHHmmdcvO+C48WLrUOlhGMc0QG7AE3f7gmvvcrmX2fDoA==" crossorigin>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css" crossorigin>
<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:1.5em;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:2em 0 .50em 0}h3{font-size:1.4em;margin:1.6em 0 .7em 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .2s ease-in-out}a:visited{color:#503}a:hover{color:#b62}.title code{font-weight:bold}h2[id^="header-"]{margin-top:2em}.ident{color:#900;font-weight:bold}pre code{font-size:.8em;line-height:1.4em;padding:1em;display:block}code{background:#f3f3f3;font-family:"DejaVu Sans Mono",monospace;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source > summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible;min-width:max-content}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em 1em;margin:1em 0}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>
<style media="screen and (min-width: 700px)">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul ul{padding-left:1em}.toc > ul > li{margin-top:.5em}}</style>
<style media="print">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:" (" attr(href) ")";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js" integrity="sha512-D9gUyxqja7hBtkWpPWGt9wfbfaMGVt9gnyCvYa+jojwwPHLCzUm5i8rpk7vD7wNee9bA35eYIjobYPaQuKS1MQ==" crossorigin></script>
<script>window.addEventListener('DOMContentLoaded', () => {
hljs.configure({languages: ['bash', 'css', 'diff', 'graphql', 'ini', 'javascript', 'json', 'plaintext', 'python', 'python-repl', 'rust', 'shell', 'sql', 'typescript', 'xml', 'yaml']});
hljs.highlightAll();
/* Collapse source docstrings */
setTimeout(() => {
[...document.querySelectorAll('.hljs.language-python > .hljs-string')]
.filter(el => el.innerHTML.length > 200 && ['"""', "'''"].includes(el.innerHTML.substring(0, 3)))
.forEach(el => {
let d = document.createElement('details');
d.classList.add('hljs-string');
d.innerHTML = '<summary>"""</summary>' + el.innerHTML.substring(3);
el.replaceWith(d);
});
}, 100);
})</script>
</head>
<body>
<main>
<article id="content">
<header>
<h1 class="title">Module <code>tflite.Tensor</code></h1>
</header>
<section id="section-intro">
</section>
<section>
</section>
<section>
</section>
<section>
<h2 class="section-title" id="header-functions">Functions</h2>
<dl>
<dt id="tflite.Tensor.AddBuffer"><code class="name flex">
<span>def <span class="ident">AddBuffer</span></span>(<span>builder, buffer)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def AddBuffer(builder, buffer):
    TensorAddBuffer(builder, buffer)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.AddHasRank"><code class="name flex">
<span>def <span class="ident">AddHasRank</span></span>(<span>builder, hasRank)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def AddHasRank(builder, hasRank):
    TensorAddHasRank(builder, hasRank)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.AddIsVariable"><code class="name flex">
<span>def <span class="ident">AddIsVariable</span></span>(<span>builder, isVariable)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def AddIsVariable(builder, isVariable):
    TensorAddIsVariable(builder, isVariable)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.AddName"><code class="name flex">
<span>def <span class="ident">AddName</span></span>(<span>builder, name)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def AddName(builder, name):
    TensorAddName(builder, name)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.AddQuantization"><code class="name flex">
<span>def <span class="ident">AddQuantization</span></span>(<span>builder, quantization)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def AddQuantization(builder, quantization):
    TensorAddQuantization(builder, quantization)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.AddShape"><code class="name flex">
<span>def <span class="ident">AddShape</span></span>(<span>builder, shape)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def AddShape(builder, shape):
    TensorAddShape(builder, shape)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.AddShapeSignature"><code class="name flex">
<span>def <span class="ident">AddShapeSignature</span></span>(<span>builder, shapeSignature)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def AddShapeSignature(builder, shapeSignature):
    TensorAddShapeSignature(builder, shapeSignature)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.AddSparsity"><code class="name flex">
<span>def <span class="ident">AddSparsity</span></span>(<span>builder, sparsity)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def AddSparsity(builder, sparsity):
    TensorAddSparsity(builder, sparsity)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.AddType"><code class="name flex">
<span>def <span class="ident">AddType</span></span>(<span>builder, type)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def AddType(builder, type):
    TensorAddType(builder, type)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.AddVariantTensors"><code class="name flex">
<span>def <span class="ident">AddVariantTensors</span></span>(<span>builder, variantTensors)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def AddVariantTensors(builder, variantTensors):
    TensorAddVariantTensors(builder, variantTensors)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.End"><code class="name flex">
<span>def <span class="ident">End</span></span>(<span>builder)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def End(builder):
    return TensorEnd(builder)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Start"><code class="name flex">
<span>def <span class="ident">Start</span></span>(<span>builder)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def Start(builder):
    TensorStart(builder)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.StartShapeSignatureVector"><code class="name flex">
<span>def <span class="ident">StartShapeSignatureVector</span></span>(<span>builder, numElems)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def StartShapeSignatureVector(builder, numElems):
    return TensorStartShapeSignatureVector(builder, numElems)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.StartShapeVector"><code class="name flex">
<span>def <span class="ident">StartShapeVector</span></span>(<span>builder, numElems)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def StartShapeVector(builder, numElems):
    return TensorStartShapeVector(builder, numElems)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.StartVariantTensorsVector"><code class="name flex">
<span>def <span class="ident">StartVariantTensorsVector</span></span>(<span>builder, numElems)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def StartVariantTensorsVector(builder, numElems):
    return TensorStartVariantTensorsVector(builder, numElems)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.TensorAddBuffer"><code class="name flex">
<span>def <span class="ident">TensorAddBuffer</span></span>(<span>builder, buffer)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def TensorAddBuffer(builder, buffer):
    builder.PrependUint32Slot(2, buffer, 0)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.TensorAddHasRank"><code class="name flex">
<span>def <span class="ident">TensorAddHasRank</span></span>(<span>builder, hasRank)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def TensorAddHasRank(builder, hasRank):
    builder.PrependBoolSlot(8, hasRank, 0)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.TensorAddIsVariable"><code class="name flex">
<span>def <span class="ident">TensorAddIsVariable</span></span>(<span>builder, isVariable)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def TensorAddIsVariable(builder, isVariable):
    builder.PrependBoolSlot(5, isVariable, 0)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.TensorAddName"><code class="name flex">
<span>def <span class="ident">TensorAddName</span></span>(<span>builder, name)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def TensorAddName(builder, name):
    builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.UOffsetTFlags.py_type(name), 0)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.TensorAddQuantization"><code class="name flex">
<span>def <span class="ident">TensorAddQuantization</span></span>(<span>builder, quantization)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def TensorAddQuantization(builder, quantization):
    builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(quantization), 0)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.TensorAddShape"><code class="name flex">
<span>def <span class="ident">TensorAddShape</span></span>(<span>builder, shape)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def TensorAddShape(builder, shape):
    builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(shape), 0)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.TensorAddShapeSignature"><code class="name flex">
<span>def <span class="ident">TensorAddShapeSignature</span></span>(<span>builder, shapeSignature)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def TensorAddShapeSignature(builder, shapeSignature):
    builder.PrependUOffsetTRelativeSlot(7, flatbuffers.number_types.UOffsetTFlags.py_type(shapeSignature), 0)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.TensorAddSparsity"><code class="name flex">
<span>def <span class="ident">TensorAddSparsity</span></span>(<span>builder, sparsity)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def TensorAddSparsity(builder, sparsity):
    builder.PrependUOffsetTRelativeSlot(6, flatbuffers.number_types.UOffsetTFlags.py_type(sparsity), 0)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.TensorAddType"><code class="name flex">
<span>def <span class="ident">TensorAddType</span></span>(<span>builder, type)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def TensorAddType(builder, type):
    builder.PrependInt8Slot(1, type, 0)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.TensorAddVariantTensors"><code class="name flex">
<span>def <span class="ident">TensorAddVariantTensors</span></span>(<span>builder, variantTensors)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def TensorAddVariantTensors(builder, variantTensors):
    builder.PrependUOffsetTRelativeSlot(9, flatbuffers.number_types.UOffsetTFlags.py_type(variantTensors), 0)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.TensorEnd"><code class="name flex">
<span>def <span class="ident">TensorEnd</span></span>(<span>builder)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def TensorEnd(builder):
    return builder.EndObject()</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.TensorStart"><code class="name flex">
<span>def <span class="ident">TensorStart</span></span>(<span>builder)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def TensorStart(builder):
    builder.StartObject(10)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.TensorStartShapeSignatureVector"><code class="name flex">
<span>def <span class="ident">TensorStartShapeSignatureVector</span></span>(<span>builder, numElems)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def TensorStartShapeSignatureVector(builder, numElems):
    return builder.StartVector(4, numElems, 4)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.TensorStartShapeVector"><code class="name flex">
<span>def <span class="ident">TensorStartShapeVector</span></span>(<span>builder, numElems)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def TensorStartShapeVector(builder, numElems):
    return builder.StartVector(4, numElems, 4)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.TensorStartVariantTensorsVector"><code class="name flex">
<span>def <span class="ident">TensorStartVariantTensorsVector</span></span>(<span>builder, numElems)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def TensorStartVariantTensorsVector(builder, numElems):
    return builder.StartVector(4, numElems, 4)</code></pre>
</details>
<div class="desc"></div>
</dd>
</dl>
</section>
<section>
<h2 class="section-title" id="header-classes">Classes</h2>
<dl>
<dt id="tflite.Tensor.Tensor"><code class="flex name class">
<span>class <span class="ident">Tensor</span></span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">class Tensor(object):
    __slots__ = [&#39;_tab&#39;]

    @classmethod
    def GetRootAs(cls, buf, offset=0):
        n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
        x = Tensor()
        x.Init(buf, n + offset)
        return x

    @classmethod
    def GetRootAsTensor(cls, buf, offset=0):
        &#34;&#34;&#34;This method is deprecated. Please switch to GetRootAs.&#34;&#34;&#34;
        return cls.GetRootAs(buf, offset)
    @classmethod
    def TensorBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
        return flatbuffers.util.BufferHasIdentifier(buf, offset, b&#34;\x54\x46\x4C\x33&#34;, size_prefixed=size_prefixed)

    # Tensor
    def Init(self, buf, pos):
        self._tab = flatbuffers.table.Table(buf, pos)

    # Tensor
    def Shape(self, j):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
        if o != 0:
            a = self._tab.Vector(o)
            return self._tab.Get(flatbuffers.number_types.Int32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4))
        return 0

    # Tensor
    def ShapeAsNumpy(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
        if o != 0:
            return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int32Flags, o)
        return 0

    # Tensor
    def ShapeLength(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
        if o != 0:
            return self._tab.VectorLen(o)
        return 0

    # Tensor
    def ShapeIsNone(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
        return o == 0

    # Tensor
    def Type(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
        return 0

    # Tensor
    def Buffer(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
        return 0

    # Tensor
    def Name(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
        if o != 0:
            return self._tab.String(o + self._tab.Pos)
        return None

    # Tensor
    def Quantization(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
        if o != 0:
            x = self._tab.Indirect(o + self._tab.Pos)
            from tflite.QuantizationParameters import QuantizationParameters
            obj = QuantizationParameters()
            obj.Init(self._tab.Bytes, x)
            return obj
        return None

    # Tensor
    def IsVariable(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
        if o != 0:
            return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
        return False

    # Tensor
    def Sparsity(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
        if o != 0:
            x = self._tab.Indirect(o + self._tab.Pos)
            from tflite.SparsityParameters import SparsityParameters
            obj = SparsityParameters()
            obj.Init(self._tab.Bytes, x)
            return obj
        return None

    # Tensor
    def ShapeSignature(self, j):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
        if o != 0:
            a = self._tab.Vector(o)
            return self._tab.Get(flatbuffers.number_types.Int32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4))
        return 0

    # Tensor
    def ShapeSignatureAsNumpy(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
        if o != 0:
            return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int32Flags, o)
        return 0

    # Tensor
    def ShapeSignatureLength(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
        if o != 0:
            return self._tab.VectorLen(o)
        return 0

    # Tensor
    def ShapeSignatureIsNone(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
        return o == 0

    # Tensor
    def HasRank(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
        if o != 0:
            return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
        return False

    # Tensor
    def VariantTensors(self, j):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(22))
        if o != 0:
            x = self._tab.Vector(o)
            x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4
            x = self._tab.Indirect(x)
            from tflite.VariantSubType import VariantSubType
            obj = VariantSubType()
            obj.Init(self._tab.Bytes, x)
            return obj
        return None

    # Tensor
    def VariantTensorsLength(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(22))
        if o != 0:
            return self._tab.VectorLen(o)
        return 0

    # Tensor
    def VariantTensorsIsNone(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(22))
        return o == 0</code></pre>
</details>
<div class="desc"></div>
<h3>Static methods</h3>
<dl>
<dt id="tflite.Tensor.Tensor.GetRootAs"><code class="name flex">
<span>def <span class="ident">GetRootAs</span></span>(<span>buf, offset=0)</span>
</code></dt>
<dd>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Tensor.GetRootAsTensor"><code class="name flex">
<span>def <span class="ident">GetRootAsTensor</span></span>(<span>buf, offset=0)</span>
</code></dt>
<dd>
<div class="desc"><p>This method is deprecated. Please switch to GetRootAs.</p></div>
</dd>
<dt id="tflite.Tensor.Tensor.TensorBufferHasIdentifier"><code class="name flex">
<span>def <span class="ident">TensorBufferHasIdentifier</span></span>(<span>buf, offset, size_prefixed=False)</span>
</code></dt>
<dd>
<div class="desc"></div>
</dd>
</dl>
<h3>Methods</h3>
<dl>
<dt id="tflite.Tensor.Tensor.Buffer"><code class="name flex">
<span>def <span class="ident">Buffer</span></span>(<span>self)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def Buffer(self):
    o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
    if o != 0:
        return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
    return 0</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Tensor.HasRank"><code class="name flex">
<span>def <span class="ident">HasRank</span></span>(<span>self)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def HasRank(self):
    o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
    if o != 0:
        return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
    return False</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Tensor.Init"><code class="name flex">
<span>def <span class="ident">Init</span></span>(<span>self, buf, pos)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def Init(self, buf, pos):
    self._tab = flatbuffers.table.Table(buf, pos)</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Tensor.IsVariable"><code class="name flex">
<span>def <span class="ident">IsVariable</span></span>(<span>self)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def IsVariable(self):
    o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
    if o != 0:
        return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
    return False</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Tensor.Name"><code class="name flex">
<span>def <span class="ident">Name</span></span>(<span>self)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def Name(self):
    o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
    if o != 0:
        return self._tab.String(o + self._tab.Pos)
    return None</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Tensor.Quantization"><code class="name flex">
<span>def <span class="ident">Quantization</span></span>(<span>self)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def Quantization(self):
    o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
    if o != 0:
        x = self._tab.Indirect(o + self._tab.Pos)
        from tflite.QuantizationParameters import QuantizationParameters
        obj = QuantizationParameters()
        obj.Init(self._tab.Bytes, x)
        return obj
    return None</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Tensor.Shape"><code class="name flex">
<span>def <span class="ident">Shape</span></span>(<span>self, j)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def Shape(self, j):
    o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
    if o != 0:
        a = self._tab.Vector(o)
        return self._tab.Get(flatbuffers.number_types.Int32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4))
    return 0</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Tensor.ShapeAsNumpy"><code class="name flex">
<span>def <span class="ident">ShapeAsNumpy</span></span>(<span>self)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def ShapeAsNumpy(self):
    o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
    if o != 0:
        return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int32Flags, o)
    return 0</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Tensor.ShapeIsNone"><code class="name flex">
<span>def <span class="ident">ShapeIsNone</span></span>(<span>self)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def ShapeIsNone(self):
    o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
    return o == 0</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Tensor.ShapeLength"><code class="name flex">
<span>def <span class="ident">ShapeLength</span></span>(<span>self)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def ShapeLength(self):
    o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
    if o != 0:
        return self._tab.VectorLen(o)
    return 0</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Tensor.ShapeSignature"><code class="name flex">
<span>def <span class="ident">ShapeSignature</span></span>(<span>self, j)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def ShapeSignature(self, j):
    o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
    if o != 0:
        a = self._tab.Vector(o)
        return self._tab.Get(flatbuffers.number_types.Int32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4))
    return 0</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Tensor.ShapeSignatureAsNumpy"><code class="name flex">
<span>def <span class="ident">ShapeSignatureAsNumpy</span></span>(<span>self)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def ShapeSignatureAsNumpy(self):
    o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
    if o != 0:
        return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int32Flags, o)
    return 0</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Tensor.ShapeSignatureIsNone"><code class="name flex">
<span>def <span class="ident">ShapeSignatureIsNone</span></span>(<span>self)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def ShapeSignatureIsNone(self):
    o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
    return o == 0</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Tensor.ShapeSignatureLength"><code class="name flex">
<span>def <span class="ident">ShapeSignatureLength</span></span>(<span>self)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def ShapeSignatureLength(self):
    o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
    if o != 0:
        return self._tab.VectorLen(o)
    return 0</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Tensor.Sparsity"><code class="name flex">
<span>def <span class="ident">Sparsity</span></span>(<span>self)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def Sparsity(self):
    o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
    if o != 0:
        x = self._tab.Indirect(o + self._tab.Pos)
        from tflite.SparsityParameters import SparsityParameters
        obj = SparsityParameters()
        obj.Init(self._tab.Bytes, x)
        return obj
    return None</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Tensor.Type"><code class="name flex">
<span>def <span class="ident">Type</span></span>(<span>self)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def Type(self):
    o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
    if o != 0:
        return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
    return 0</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Tensor.VariantTensors"><code class="name flex">
<span>def <span class="ident">VariantTensors</span></span>(<span>self, j)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def VariantTensors(self, j):
    o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(22))
    if o != 0:
        x = self._tab.Vector(o)
        x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4
        x = self._tab.Indirect(x)
        from tflite.VariantSubType import VariantSubType
        obj = VariantSubType()
        obj.Init(self._tab.Bytes, x)
        return obj
    return None</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Tensor.VariantTensorsIsNone"><code class="name flex">
<span>def <span class="ident">VariantTensorsIsNone</span></span>(<span>self)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def VariantTensorsIsNone(self):
    o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(22))
    return o == 0</code></pre>
</details>
<div class="desc"></div>
</dd>
<dt id="tflite.Tensor.Tensor.VariantTensorsLength"><code class="name flex">
<span>def <span class="ident">VariantTensorsLength</span></span>(<span>self)</span>
</code></dt>
<dd>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def VariantTensorsLength(self):
    o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(22))
    if o != 0:
        return self._tab.VectorLen(o)
    return 0</code></pre>
</details>
<div class="desc"></div>
</dd>
</dl>
</dd>
</dl>
</section>
</article>
<nav id="sidebar">
<div class="toc">
<ul></ul>
</div>
<ul id="index">
<li><h3>Super-module</h3>
<ul>
<li><code><a title="tflite" href="index.html">tflite</a></code></li>
</ul>
</li>
<li><h3><a href="#header-functions">Functions</a></h3>
<ul class="">
<li><code><a title="tflite.Tensor.AddBuffer" href="#tflite.Tensor.AddBuffer">AddBuffer</a></code></li>
<li><code><a title="tflite.Tensor.AddHasRank" href="#tflite.Tensor.AddHasRank">AddHasRank</a></code></li>
<li><code><a title="tflite.Tensor.AddIsVariable" href="#tflite.Tensor.AddIsVariable">AddIsVariable</a></code></li>
<li><code><a title="tflite.Tensor.AddName" href="#tflite.Tensor.AddName">AddName</a></code></li>
<li><code><a title="tflite.Tensor.AddQuantization" href="#tflite.Tensor.AddQuantization">AddQuantization</a></code></li>
<li><code><a title="tflite.Tensor.AddShape" href="#tflite.Tensor.AddShape">AddShape</a></code></li>
<li><code><a title="tflite.Tensor.AddShapeSignature" href="#tflite.Tensor.AddShapeSignature">AddShapeSignature</a></code></li>
<li><code><a title="tflite.Tensor.AddSparsity" href="#tflite.Tensor.AddSparsity">AddSparsity</a></code></li>
<li><code><a title="tflite.Tensor.AddType" href="#tflite.Tensor.AddType">AddType</a></code></li>
<li><code><a title="tflite.Tensor.AddVariantTensors" href="#tflite.Tensor.AddVariantTensors">AddVariantTensors</a></code></li>
<li><code><a title="tflite.Tensor.End" href="#tflite.Tensor.End">End</a></code></li>
<li><code><a title="tflite.Tensor.Start" href="#tflite.Tensor.Start">Start</a></code></li>
<li><code><a title="tflite.Tensor.StartShapeSignatureVector" href="#tflite.Tensor.StartShapeSignatureVector">StartShapeSignatureVector</a></code></li>
<li><code><a title="tflite.Tensor.StartShapeVector" href="#tflite.Tensor.StartShapeVector">StartShapeVector</a></code></li>
<li><code><a title="tflite.Tensor.StartVariantTensorsVector" href="#tflite.Tensor.StartVariantTensorsVector">StartVariantTensorsVector</a></code></li>
<li><code><a title="tflite.Tensor.TensorAddBuffer" href="#tflite.Tensor.TensorAddBuffer">TensorAddBuffer</a></code></li>
<li><code><a title="tflite.Tensor.TensorAddHasRank" href="#tflite.Tensor.TensorAddHasRank">TensorAddHasRank</a></code></li>
<li><code><a title="tflite.Tensor.TensorAddIsVariable" href="#tflite.Tensor.TensorAddIsVariable">TensorAddIsVariable</a></code></li>
<li><code><a title="tflite.Tensor.TensorAddName" href="#tflite.Tensor.TensorAddName">TensorAddName</a></code></li>
<li><code><a title="tflite.Tensor.TensorAddQuantization" href="#tflite.Tensor.TensorAddQuantization">TensorAddQuantization</a></code></li>
<li><code><a title="tflite.Tensor.TensorAddShape" href="#tflite.Tensor.TensorAddShape">TensorAddShape</a></code></li>
<li><code><a title="tflite.Tensor.TensorAddShapeSignature" href="#tflite.Tensor.TensorAddShapeSignature">TensorAddShapeSignature</a></code></li>
<li><code><a title="tflite.Tensor.TensorAddSparsity" href="#tflite.Tensor.TensorAddSparsity">TensorAddSparsity</a></code></li>
<li><code><a title="tflite.Tensor.TensorAddType" href="#tflite.Tensor.TensorAddType">TensorAddType</a></code></li>
<li><code><a title="tflite.Tensor.TensorAddVariantTensors" href="#tflite.Tensor.TensorAddVariantTensors">TensorAddVariantTensors</a></code></li>
<li><code><a title="tflite.Tensor.TensorEnd" href="#tflite.Tensor.TensorEnd">TensorEnd</a></code></li>
<li><code><a title="tflite.Tensor.TensorStart" href="#tflite.Tensor.TensorStart">TensorStart</a></code></li>
<li><code><a title="tflite.Tensor.TensorStartShapeSignatureVector" href="#tflite.Tensor.TensorStartShapeSignatureVector">TensorStartShapeSignatureVector</a></code></li>
<li><code><a title="tflite.Tensor.TensorStartShapeVector" href="#tflite.Tensor.TensorStartShapeVector">TensorStartShapeVector</a></code></li>
<li><code><a title="tflite.Tensor.TensorStartVariantTensorsVector" href="#tflite.Tensor.TensorStartVariantTensorsVector">TensorStartVariantTensorsVector</a></code></li>
</ul>
</li>
<li><h3><a href="#header-classes">Classes</a></h3>
<ul>
<li>
<h4><code><a title="tflite.Tensor.Tensor" href="#tflite.Tensor.Tensor">Tensor</a></code></h4>
<ul class="">
<li><code><a title="tflite.Tensor.Tensor.Buffer" href="#tflite.Tensor.Tensor.Buffer">Buffer</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.GetRootAs" href="#tflite.Tensor.Tensor.GetRootAs">GetRootAs</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.GetRootAsTensor" href="#tflite.Tensor.Tensor.GetRootAsTensor">GetRootAsTensor</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.HasRank" href="#tflite.Tensor.Tensor.HasRank">HasRank</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.Init" href="#tflite.Tensor.Tensor.Init">Init</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.IsVariable" href="#tflite.Tensor.Tensor.IsVariable">IsVariable</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.Name" href="#tflite.Tensor.Tensor.Name">Name</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.Quantization" href="#tflite.Tensor.Tensor.Quantization">Quantization</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.Shape" href="#tflite.Tensor.Tensor.Shape">Shape</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.ShapeAsNumpy" href="#tflite.Tensor.Tensor.ShapeAsNumpy">ShapeAsNumpy</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.ShapeIsNone" href="#tflite.Tensor.Tensor.ShapeIsNone">ShapeIsNone</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.ShapeLength" href="#tflite.Tensor.Tensor.ShapeLength">ShapeLength</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.ShapeSignature" href="#tflite.Tensor.Tensor.ShapeSignature">ShapeSignature</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.ShapeSignatureAsNumpy" href="#tflite.Tensor.Tensor.ShapeSignatureAsNumpy">ShapeSignatureAsNumpy</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.ShapeSignatureIsNone" href="#tflite.Tensor.Tensor.ShapeSignatureIsNone">ShapeSignatureIsNone</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.ShapeSignatureLength" href="#tflite.Tensor.Tensor.ShapeSignatureLength">ShapeSignatureLength</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.Sparsity" href="#tflite.Tensor.Tensor.Sparsity">Sparsity</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.TensorBufferHasIdentifier" href="#tflite.Tensor.Tensor.TensorBufferHasIdentifier">TensorBufferHasIdentifier</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.Type" href="#tflite.Tensor.Tensor.Type">Type</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.VariantTensors" href="#tflite.Tensor.Tensor.VariantTensors">VariantTensors</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.VariantTensorsIsNone" href="#tflite.Tensor.Tensor.VariantTensorsIsNone">VariantTensorsIsNone</a></code></li>
<li><code><a title="tflite.Tensor.Tensor.VariantTensorsLength" href="#tflite.Tensor.Tensor.VariantTensorsLength">VariantTensorsLength</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</nav>
</main>
<footer id="footer">
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.11.5</a>.</p>
</footer>
</body>
</html>
